<template>
	<view class="main">
		<view class="task-list" v-for="item in list" :key="item.id">
			<image :src="item.url" mode="aspectFill"></image>
			<view class="task-list-infos">
				<text>{{item.title}}</text>
				<view class="task-list-infos-item">
					<text>{{item.info}}</text>
					<image src="http://images.linglinggong.net/pingfen/hghfjkgvcb.png" mode="aspectFill"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						id: 1,
						url: 'http://images.linglinggong.net/pingfen/icon.png',
						title: '新手注册登录',
						info: '完善头像、姓名、性别'
					},
					{
						id: 2,
						url: 'http://images.linglinggong.net/pingfen/icon1.png',
						title: '新手引导观看完毕',
						info: '查看新手引导视频'
					},
					{
						id: 3,
						url: 'http://images.linglinggong.net/pingfen/icon2.png',
						title: '实名认证个人信息',
						info: '完成实名认证信息'
					},
					{
						id: 4,
						url: 'http://images.linglinggong.net/pingfen/icon3.png',
						title: '选择擅长工作技能',
						info: '选择工作技能标签'
					},
					{
						id: 5,
						url: 'http://images.linglinggong.net/pingfen/icon4.png',
						title: '完善个人信息',
						info: '完善头像、姓名、性别'
					},
				]
			}
		},
	}
</script>

<style lang="less" scoped>
	.main {
		margin-top: 30rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.task-list {
		width: 690rpx;
		height: 148rpx;
		background: #FFFFFF;
		border-radius: 12rpx;
		margin-top: 20rpx;
		display: flex;
		align-items: center;

		&>image:nth-child(1) {
			margin-left: 30rpx;
			width: 88rpx;
			height: 88rpx;
		}
	}

	.task-list-infos {
		display: flex;
		flex-direction: column;
		margin-left: 20rpx;

		&>text:nth-child(1) {
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #000000;
			line-height: 60rpx;
		}
	}

	.task-list-infos-item {
		display: flex;
		align-items: center;

		&>text:nth-child(1) {
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #7F7F7F;
			line-height: 45rpx;
		}
		&>image:nth-child(2) {
			width: 18rpx;
			height: 32rpx;
			margin-left: 6rpx;
		}
	}
</style>
